package com.ysx.teacher.day20210922.ch08;

public class Ch08 {

    /**
     * 面向对象  参数越少越好 初级往高级
     * @param daizi
     * @return
     */
    public double add(Daizi daizi){
        return daizi.getX()+ daizi.getY()+daizi.getZ()+daizi.getA()+daizi.getB();
    }
}
